package com.jcl.elasticsearch.server;

import com.jcl.core.resp.ApiResponse;
import com.jcl.elasticsearch.core.entity.ResumeDownloadInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName ProxyChannelServer
 * @Description TODO
 * @Author yyliu
 * @Date 2018/11/13 10:23
 * @Version 1.0
 **/
@FeignClient(
        name = "recruit-api-cluster",
        path = "/api/crawler"
)
public interface ResumeApiProxy {

    @PostMapping(value = "/resume/complete")
    ApiResponse completeResume(@RequestBody ResumeDownloadInfo entity);

}
